package com.furentech.iotserver.fa.dao;

import com.furentech.iotserver.fa.dto.VehicleInDataTimeDto;
import com.furentech.iotserver.fa.model.DqJt808LocationInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DqJt808LocationInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DqJt808LocationInfo record);

    int insertSelective(DqJt808LocationInfo record);

    DqJt808LocationInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DqJt808LocationInfo record);

    int updateByPrimaryKey(DqJt808LocationInfo record);

    //查找每个车载设备的最近一次记录
    List<VehicleInDataTimeDto> selectVehicleTime();
}